<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
   "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>易道名片管理系统-客户编辑</title>
</head>
<body>
<div class="span-4">
&nbsp;
</div>
<form:form name="customer-form" method="post" commandName="customer">
<form:hidden path="id"/>
<div class="span-10 panel">
	<div class="span-10 panel-title last">
		客户编辑
	</div>
	<div class="span-10 last" style="color:red">
		<c:forEach items="${fieldErrors}" var="fieldError">
			<c:out value="${fieldError.field}"/> - <c:out value="${fieldError.defaultMessage}"/>
		</c:forEach>
	</div>
	<div class="span-3 field-label">name:</div>
	<div class="span-7 last">
		<form:input path="name" cssStyle="width:90%"/>
	</div>
	<div class="span-10 last">
		<div class="span-3 field-label">gender:</div>
		<div class="span-7 last" style="text-align:left;">
			<form:radiobuttons cssStyle="margin-top:10px" path="gender" items="${genderOptions}"/>
		</div>
	</div>
	<div class="span-3 field-label">job title:</div>
	<div class="span-7 last">
		<form:input path="jobTitle" cssStyle="width:90%"/>
	</div>
	<div class="span-3 field-label">company:</div>
	<div class="span-7 last">
		<form:input path="company" cssStyle="width:90%"/>
	</div>
	<div class="span-3 field-label">business phone:</div>
	<div class="span-7 last">
		<form:input path="bizPhone" cssStyle="width:90%"/>
	</div>
	<div class="span-3 field-label">home phone:</div>
	<div class="span-7 last">
		<form:input path="homePhone" cssStyle="width:90%"/>
	</div>
	<div class="span-3 field-label">email:</div>
	<div class="span-7 last">
		<form:input path="email" cssStyle="width:90%"/>
	</div>
	<div class="span-3 field-label">msn:</div>
	<div class="span-7 last">
		<form:input path="msn" cssStyle="width:90%"/>
	</div>
	<div class="span-3 field-label">qq:</div>
	<div class="span-7 last">
		<form:input path="qq" cssStyle="width:90%"/>
	</div>
	<div class="span-3 field-label">birthday:</div>
	<div class="span-7 last">
		<form:input path="birthday" cssStyle="width:90%"/>
	</div>
	<div class="span-10 last form-de1
	button-bar">
		<input id="login-btn" type="submit" value="save">
	</div>
</div>
</form:form>
<div class="span-5">
&nbsp;
</div>
</body>
</html>